package cn.yi.boot.mq.config;

import cn.yi.boot.mq.coder.SerialEncoderDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SerialEncoderDecoderConfig {
   @Bean("messageEncoder")
    public SerialEncoderDecoder messageEncoder(){
        return new SerialEncoderDecoder();
    }

    @Bean("messageDecoder")
    public SerialEncoderDecoder messageDecoder(){
        return new SerialEncoderDecoder();
    }
}
